//
//  MOrder.h
//  RRQS
//
//  Created by kyjun on 16/3/24.
//
//

#import <Foundation/Foundation.h>
#import "MSubOrder.h"
#import "MStore.h"

@interface MOrder : NSObject

-(instancetype)initWithItem:(NSDictionary*)item;
-(instancetype)initWithOrder:(NSDictionary*)item;
-(instancetype)initWithStore:(NSDictionary*)item;

-(instancetype)initWithFished:(NSDictionary*)item;

/**
 *  主订单编号
 */
@property(nonatomic,strong) NSString* rowID;
/**
 *  主订单收货地址
 */
@property(nonatomic,strong) NSString* address;
 @property(nonatomic,strong) NSString* addressRoad;
/**
 *  主订单金额
 */
@property(nonatomic,strong) NSString* totalMoney;
/**
 *  主订单配送费
 */
@property(nonatomic,strong) NSString* shipFee;
/**
 *  主订单创建时间
 */
@property(nonatomic,strong) NSString* createDate;

@property(nonatomic,copy) NSString* liushui;
@property(nonatomic,copy) NSString* send_time;
@property(nonatomic,copy) NSString* dantype;
@property(nonatomic,copy) NSString* get_road;
@property(nonatomic,copy) NSString* main_id;
@property(nonatomic,copy) NSString* shipping_fee;
@property(nonatomic,copy) NSString* xd_time;
@property(nonatomic,copy) NSString* add_time;
@property(nonatomic,copy) NSString* check_time;



@property(nonatomic,copy) NSString* reas_time;

@property(nonatomic,copy) NSString* shengyu;
@property(nonatomic,copy) NSString* order_status;
@property(nonatomic,copy) NSString* amin_name;
@property(nonatomic,copy) NSString* juli;
@property(nonatomic,copy) NSString* paidan_time;
@property(nonatomic,copy) NSString* send_address;

@property(nonatomic,copy) NSString* get_address;
@property(nonatomic,copy) NSString* jiedan_time;
@property(nonatomic,copy) NSString* postscript;
@property(nonatomic,copy) NSString* order_number;
@property(nonatomic,copy) NSString* pay_name;
@property(nonatomic,copy) NSString* main_phone;
@property(nonatomic,copy) NSString* wancheng_time;

@property(nonatomic,copy) NSString* user_phone;
@property(nonatomic,copy) NSString* shang_lng;
@property(nonatomic,copy) NSString* shang_lat;

@property(nonatomic,copy) NSString* user_lng;
@property(nonatomic,copy) NSString* user_lat;
@property(nonatomic,strong) NSArray* goods_info;

@property(nonatomic,copy) NSString* fname;
@property(nonatomic,copy) NSString* quantity;
@property(nonatomic,copy) NSString* image;
@property(nonatomic,copy) NSString* price;


@property(nonatomic,copy) NSString* heji;
@property(nonatomic,copy) NSString* peisong;
@property(nonatomic,copy) NSString* youhui;
@property(nonatomic,copy) NSString* chaoshi;
@property(nonatomic,copy) NSString* shifu_price;
@property(nonatomic,copy) NSString* yujidaoda_time;


#pragma mark =====================================================  
/**
 *  快递ID
 */
@property(nonatomic,strong) NSString* empID;
/**
 *  下单时间
 */
@property(nonatomic,strong) NSString* addTime;
/**
 *  取货时间
 */
@property(nonatomic,strong) NSString* getTime;
/**
 *  送达时间
 */
@property(nonatomic,strong) NSString* sendTime;
/**
 *  快递耗时 (times)
 */
@property(nonatomic,strong) NSString* spendTime;

/**
 *  订单备注
 */
@property(nonatomic,strong) NSString* orderMark;

/**
 *  订单状态 (status)
 */
@property(nonatomic,assign) EnumExpressStatus status;

/**
 *  子订单列表
 */
@property(nonatomic,strong) NSMutableArray* arraySubOrder;


@property(nonatomic,strong) NSMutableArray* arrayStore;

@property(nonatomic,strong) NSArray* arrayGoodsName;


@end

